package com.heg.bk.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * HegMobileUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "heg_mobile_user", catalog = "heg")
public class HegMobileUser implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer uid;
	private String telnumber;
	private String password;
	private String tokencode;
	private String uname;
	private String unick;
	private Integer usertype;
	private String uicon;
	private String backImge;
	private Integer sex;
	private Integer age;
	private String country;
	private String province;
	private String city;
	private String area;
	private String adress;
	private double lng;
	private double lat;
	private String deviceversion;
	private Integer devicetype;
	private String devicekey;
	private String deviceId;
	private Integer attcount;
	private Integer fanscount;
	private Integer sharecount;
	private Integer integral;
	private Integer grade;
	private String userId;
	private String channelId;
	private String createtime;
	private String updatetime;
	private String description;
	private Integer isdel;

	// Constructors

	/** default constructor */
	public HegMobileUser() {
	}
	
	public HegMobileUser(String telnumber, String password) {
		super();
		this.telnumber = telnumber;
		this.password = password;
	}

	/** full constructor */
	public HegMobileUser(String telnumber, String password, String tokencode,
			String uname, String unick, Integer usertype, String uicon,
			Integer sex, Integer age, String country, String province,
			String city, String area, String adress, double lng, double lat,
			Integer devicetype, String devicekey, String deviceId,
			Integer attcount, Integer fanscount, Integer sharecount,
			Integer integral, Integer grade, String userId, String channelId,
			String createtime, String updatetime, String description,
			Integer isdel) {
		this.telnumber = telnumber;
		this.password = password;
		this.tokencode = tokencode;
		this.uname = uname;
		this.unick = unick;
		this.usertype = usertype;
		this.uicon = uicon;
		this.sex = sex;
		this.age = age;
		this.country = country;
		this.province = province;
		this.city = city;
		this.area = area;
		this.adress = adress;
		this.lng = lng;
		this.lat = lat;
		this.devicetype = devicetype;
		this.devicekey = devicekey;
		this.deviceId = deviceId;
		this.attcount = attcount;
		this.fanscount = fanscount;
		this.sharecount = sharecount;
		this.integral = integral;
		this.grade = grade;
		this.userId = userId;
		this.channelId = channelId;
		this.createtime = createtime;
		this.updatetime = updatetime;
		this.description = description;
		this.isdel = isdel;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "uid", unique = true, nullable = false)
	public Integer getUid() {
		return this.uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	@Column(name = "telnumber", length = 20)
	public String getTelnumber() {
		return this.telnumber;
	}

	public void setTelnumber(String telnumber) {
		this.telnumber = telnumber;
	}

	@Column(name = "password")
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "tokencode", length = 50)
	public String getTokencode() {
		return this.tokencode;
	}

	public void setTokencode(String tokencode) {
		this.tokencode = tokencode;
	}

	@Column(name = "uname", length = 20)
	public String getUname() {
		return this.uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	@Column(name = "unick", length = 20)
	public String getUnick() {
		return this.unick;
	}

	public void setUnick(String unick) {
		this.unick = unick;
	}

	@Column(name = "usertype")
	public Integer getUsertype() {
		return this.usertype;
	}

	public void setUsertype(Integer usertype) {
		this.usertype = usertype;
	}

	@Column(name = "uicon", length = 50)
	public String getUicon() {
		return this.uicon;
	}

	public void setUicon(String uicon) {
		this.uicon = uicon;
	}
	
	@Column(name = "backimage", length = 50)
	public String getBackImge() {
		return backImge;
	}

	public void setBackImge(String backImge) {
		this.backImge = backImge;
	}

	@Column(name = "sex")
	public Integer getSex() {
		return this.sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	@Column(name = "age")
	public Integer getAge() {
		return this.age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	@Column(name = "country", length = 20)
	public String getCountry() {
		return this.country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	@Column(name = "province", length = 30)
	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	@Column(name = "city", length = 20)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "area", length = 30)
	public String getArea() {
		return this.area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	@Column(name = "adress", length = 50)
	public String getAdress() {
		return this.adress;
	}

	public void setAdress(String adress) {
		this.adress = adress;
	}

	@Column(name = "lng", precision = 20, scale = 8)
	public double getLng() {
		return this.lng;
	}

	public void setLng(double lng) {
		this.lng = lng;
	}

	@Column(name = "lat", precision = 20, scale = 8)
	public double getLat() {
		return this.lat;
	}

	public void setLat(double lat) {
		this.lat = lat;
	}
	
	@Column(name = "deviceversion", length = 100)
	public String getDeviceversion() {
		return deviceversion;
	}

	public void setDeviceversion(String deviceversion) {
		this.deviceversion = deviceversion;
	}

	@Column(name = "devicetype")
	public Integer getDevicetype() {
		return this.devicetype;
	}

	public void setDevicetype(Integer devicetype) {
		this.devicetype = devicetype;
	}

	@Column(name = "devicekey", length = 100)
	public String getDevicekey() {
		return this.devicekey;
	}

	public void setDevicekey(String devicekey) {
		this.devicekey = devicekey;
	}

	@Column(name = "deviceId", length = 100)
	public String getDeviceId() {
		return this.deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	@Column(name = "attcount")
	public Integer getAttcount() {
		return this.attcount;
	}

	public void setAttcount(Integer attcount) {
		this.attcount = attcount;
	}

	@Column(name = "fanscount")
	public Integer getFanscount() {
		return this.fanscount;
	}

	public void setFanscount(Integer fanscount) {
		this.fanscount = fanscount;
	}

	@Column(name = "sharecount")
	public Integer getSharecount() {
		return this.sharecount;
	}

	public void setSharecount(Integer sharecount) {
		this.sharecount = sharecount;
	}

	@Column(name = "integral")
	public Integer getIntegral() {
		return this.integral;
	}

	public void setIntegral(Integer integral) {
		this.integral = integral;
	}

	@Column(name = "grade")
	public Integer getGrade() {
		return this.grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

	@Column(name = "userID", length = 20)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Column(name = "channelId", length = 20)
	public String getChannelId() {
		return this.channelId;
	}

	public void setChannelId(String channelId) {
		this.channelId = channelId;
	}

	@Column(name = "createtime", length = 20)
	public String getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	@Column(name = "updatetime", length = 20)
	public String getUpdatetime() {
		return this.updatetime;
	}

	public void setUpdatetime(String updatetime) {
		this.updatetime = updatetime;
	}

	@Column(name = "description", length = 100)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "isdel")
	public Integer getIsdel() {
		return this.isdel;
	}

	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}

}